const routes: RouteRecordRaw[] = [
  {
    path: '/',
    redirect: '/login',
  },
  {
    path: '/login',
    name: 'Login',
    meta: {
      title: '铁头娃子管理系统',
      keepAlive: false,
    },
    component: () => import('@/views/login/index.vue'),
  },
  {
    path: '/home',
    name: 'Home',
    redirect: '/tpls/edit-tpl',
    meta: {
      title: 'home',
      keepAlive: false,
    },
    component: () => import('@/views/home/index.vue'),
    children: [],
  },
  {
    path: '/:patchAll(.*)',
    name: '404',
    meta: {
      title: '访问资源不存在',
    },
    component: () => import('@/views/home/404.vue'),
  },
]

export default routes
